Subnetting is like dividing a large pizza into slices so everyone gets their share without fighting. It's the art of efficient network management. 🍕
Prior to moving towards subnetting and CIDR notation, here are some terms you must know.
A network is allocated to you by your ISP (think of it like a street). The router is just the gatekeeper of this street.
192.168.10.0/24/24 tells how many devices can exist in that network./24 means 256 addresses, 254 usable for devices.Every network has a network address, like the name of the street.
192.168.10.0/24 -> .0 is the Network Address.Imagine you want to send a wedding invitation to all houses on your street.
Subnetting is like dividing your network into smaller, private blocks.
Remember: Every subnet has its own Broadcast Address and Network Address.
Classless Inter-Domain Routing (CIDR) is a system where we use IP + Suffix to describe the size of a network.
For example, your ISP may assign you a Public IP + suffix combination, like 192.168.10.0/24 (/24 is common in home networks). By this /24, we can readily find the network size, the Network Address, and Broadcast Address.
Example 1: 192.168.10.0/24
32 - 24 = 8.2^8 = 256. Range is 0-255.192.168.10.0.192.168.10.255.256 - 2 = 254 devices.Note: The first 24 bits are for Network Identification and the remaining 8 bits are for Size.
Example 2: 192.168.50.70/26
32 - 26 = 6.2^6 = 64.0 - 6364 - 127128 - 191192 - 25570 fall? In the second range (64 - 127).192.168.50.64192.168.50.12764 - 2 = 62The step of finding the correct block is crucial! ⚠️